# 0b1fe2d25f334eb2821e8b23efb8203d

import requests

# https://uwf7de983aad7a717eb.youzy.cn/op/Classrooms/Packs/Query 这个是获取到我们的 id 的地方 还有请求体

# https://uwf7de983aad7a717eb.youzy.cn/op/Aliyun/GetPlayInfo?videoId=df8f271a4c1d4e958a074279eabcfa4f&isApp=true
# 北京大学 存在videoId 606c2419232000667f95ab3e
# https://uwf7de983aad7a717eb.youzy.cn/op/Classrooms/Packs/Get?id=606c2419232000667f95ab3e&isAddHits=false
# 复旦大学  6047364985ce6f285429a221  这里面存在videoId
# https://uwf7de983aad7a717eb.youzy.cn/op/Classrooms/Packs/Get?id=6047364985ce6f285429a221&isAddHits=false
# 0b1fe2d25f334eb2821e8b23efb8203d videoId 和我们的 isApp True 是我们的发送请求的时候需要携带的参数
# 这个地址可以获取到我们的 video   我们需要寻找videoId


# post请求获取不到数据
url = 'https://uwf7de983aad7a717eb.youzy.cn/op/Classrooms/Packs/Query'
headers = {
    'Accept': '*/*',
    'Accept-Encoding': 'gzip, deflate, br',
    'Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6',
    'Connection': 'keep-alive',
    'Content-Length': '60',
    'Content-Type': 'application/json',
    'Host': 'uwf7de983aad7a717eb.youzy.cn',
    'Origin': 'https://pv4y-pc.youzy.cn',
    'Referer': 'https://pv4y-pc.youzy.cn/',
    'sec-ch-ua': '"Not A;Brand";v="99", "Chromium";v="100", "Microsoft Edge";v="100"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"Windows"',
    'Sec-Fetch-Dest': 'empty',
    'Sec-Fetch-Mode': 'cors',
    'Sec-Fetch-Site': 'same-site',
    'u-sign': '8c6ace484f1212d9da4ddfae3d95602e',
    'u-token': 'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBpZCI6ImE0ZjFlMGRjZjNlNWY1ZWI3ZTk2ZjE0ZTAyMDY4OWI5IiwidWlkIjoiNjI5YzVlZTNmMDhmM2U3MmRlYWJkNTUwIiwiaWF0IjoxNjU3NjgwOTk5LCJleHAiOjE2NTc5NDAxOTl9.bkU4P3-ZRuN9SHeuwEDfhhzINpgiRLl-7HO9yWEhwvjvKGq9EMYr8IGGg0edmAD78YR_u8fjaBmFiNa9iI--mv6jCgBDXiTLza11xsB6y2egJJ3fgEURbtGU2c5UHORK7dGwHKXm9RejjfroqzwHsFAEWZSsCfnfGOTVD-D7Om8',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36 Edg/100.0.1185.50',
}
data = {"keyword": "复旦大学", "type": 4, "count": 99}
res = requests.post(headers=headers, url=url, data=data)
print(res.text)
